// 封装token的相关方法 存 取 删

const TOKENKEY = 'token_key'

const setToken = (token: string) => {
  localStorage.setItem(TOKENKEY, token)
}

const getToken = () => {
  return localStorage.getItem(TOKENKEY)
}

const removeToken = () => {
  localStorage.removeItem(TOKENKEY)
}

export {
  setToken,
  getToken,
  removeToken
}